package com.ys.erp.entity.data.bean;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author lwj
 * @date 2025/6/20
 */
    
@Data
@TableName(value = "t_shop_ext")
public class ShopExt {
    /**
     * 和主表id保持一致
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 店铺编码
     */
    @TableField(value = "shop_code")
    private String shopCode;

    /**
     * 城市名称
     */
    @TableField(value = "city_name")
    private String cityName;

    @TableField(value = "shop_title")
    private String shopTitle;

    /**
     * 属于公司
     */
    @TableField(value = "belong_company")
    private String belongCompany;

    /**
     * 微分呗对应公司
     */
    @TableField(value = "wfb_company")
    private String wfbCompany;

    /**
     * 收钱吧对应公司
     */
    @TableField(value = "sqb_company")
    private String sqbCompany;

    /**
     * 微分呗二维码
     */
    @TableField(value = "wfb_qr_code")
    private String wfbQrCode;

    /**
     * 支付二维码
     */
    @TableField(value = "pay_code")
    private String payCode;

    /**
     * 是否允许被采购
     */
    @TableField(value = "is_procure")
    private Integer isProcure;

    /**
     * 是否到期
     */
    @TableField(value = "is_expired")
    private String isExpired;

    /**
     * 年服务金额
     */
    @TableField(value = "annual_service_amount")
    private Long annualServiceAmount;

    /**
     * 年服务到期时间
     */
    @TableField(value = "annual_service_expiry_date")
    private LocalDateTime annualServiceExpiryDate;

    /**
     * 法人姓名
     */
    @TableField(value = "legal_name")
    private String legalName;

    /**
     * 法人身份证
     */
    @TableField(value = "legal_id_card")
    private String legalIdCard;

    /**
     * 法人联系方式
     */
    @TableField(value = "legal_phone")
    private String legalPhone;

    /**
     * 法人居住地址
     */
    @TableField(value = "legal_address")
    private String legalAddress;

    /**
     * 主合同编号
     */
    @TableField(value = "main_contract_no")
    private String mainContractNo;

    /**
     * 电子签约是否开通
     */
    @TableField(value = "contract_status")
    private Integer contractStatus;

    /**
     * 反馈信息链接
     */
    @TableField(value = "feedback_url")
    private String feedbackUrl;

    /**
     * 扩展人id默认空 null 空则为hz0
     */
    @TableField(value = "extender_id")
    private Long extenderId;

    /**
     * 是否开启支付宝转账分账，0否1是
     */
    @TableField(value = "is_open_zfb_separate_account")
    private Integer isOpenZfbSeparateAccount;

    /**
     * 分账比列
     */
    @TableField(value = "zfb_separate_ratio")
    private String zfbSeparateRatio = "0";

    /**
     * 支付宝账户
     */
    @TableField(value = "zfb_account")
    private String zfbAccount;

    @TableField(value = "zfb_name")
    private String zfbName;

    /**
     * 乐观锁版本号
     */
    @TableField(value = "version")
    @Version
    private Integer version;

    @TableField(value = "create_time")
    private LocalDateTime createTime;

    @TableField(value = "update_time", update = "now()")
    private LocalDateTime updateTime;
}